import http from '../util/request.js'

export default {
    // 添加数据
    add: (obj) => {
        return http({
            url: '/api/bill',
            method: 'post',
            data: obj,
            headers: {
                'Content-Type': 'application/json'
            }
        })
    },

    // 编辑数据
    edit: (obj) => {
        return http({
            url: '/api/bill',
            method: 'put',
            data: obj,
            headers: {
                'Content-Type': 'application/json'
            }
        })
    },

    // 删除数据
    del: (id) => {
        return http({
            url: '/api/bill/'+id,
            method: 'delete',
            headers: {
                'Content-Type': 'application/json'
            }
        })
    },

    // 分页查询
    page: (obj) => {
        return http({
            url: '/api/bill/page',
            method: 'get',
            params: obj,
        })
    },

}


